<img class='flag_{{state}}' id='im_flag_{{flag}}_{{ref.id}}' src='/code/images/ico/flag_{{flag}}.gif' onclick='flag_click({{ref.id}},"{{flag}}");'>

